package com.smart.community.parking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smart.community.parking.entity.ParkingSpace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 车位Mapper接口
 * 
 * @author Wu.Liang
 * @since 2024-12-21
 */
@Mapper
public interface ParkingSpaceMapper extends BaseMapper<ParkingSpace> {

    /**
     * 批量插入车位
     * 
     * @param spaces 车位列表
     * @return 插入数量
     */
    int batchInsert(@Param("spaces") List<ParkingSpace> spaces);
} 